import { Table } from 'antd';


const dataSource = [
    {
      key: '1',
      shangping: '胡彦斌',
      dadanjia: 32,
      dashuliang:1,
      // xiaodanjia:11,
      // xiaoshuliang:22,
      xiaodanjia: '西湖区湖底公园1号',
      xiaoshuliang:3,
      jine:'222'
    },
    {
        key: '2',
        shangping: '胡彦斌',
        dadanjia: 32,
        dashuliang:1,
        xiaodanjia: '西湖区湖底公园1号',
        xiaoshuliang:3,
        jine:'222'
    },
  ];
  
  const columns = [
    {
      title: '商品',
      dataIndex: 'shangping',
      key: 'shangping',
      // width:150,
    },
    {
      title: '单价/大单位',
      dataIndex: 'dadanjia',
      key: 'dadanjia',
      // width:150,
    },
    {
      title: '数量',
      dataIndex: 'dashuliang',
      key: 'dashuliang',
      // width:150,
    },
    {
        title: '单价/小单位',
        dataIndex: 'xiaodanjia',
        key: 'xiaodanjia',
        // width:150,
      },
      {
        title: '数量',
        dataIndex: 'xiaoshuliang',
        key: 'xiaoshuliang',
        // width:150,
      },
      {
        title: '金额',
        dataIndex: 'jine',
        key: 'jine',
        // width:150,
      },
  ];
  const OrderPreviewTab = (props)=>{

    return(
        <Table bordered dataSource={dataSource} columns={columns} />
        
    )
  }
export default OrderPreviewTab